package cn.ekuma.pos.pda;

import cn.ekuma.pos.android.erp.R;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;

public class PreferencesActivity extends PreferenceActivity
implements OnSharedPreferenceChangeListener{
	public static final String KEY_SERVICE_ADDR = "preferences_server_addr";
	public static final String KEY_SERVICE_ADDR_DEFAULT = "http://clundpos.jd-app.com/";
	public static String KEY_LOCAL_MACHINE_NAME = "preferences_local_machine_name";
	
	private EditTextPreference service_Addr;
	

	 
	  protected void onCreate(Bundle icicle) {
	    super.onCreate(icicle);
	    addPreferencesFromResource(R.xml.preferences);

	    PreferenceScreen preferences = getPreferenceScreen();
	    preferences.getSharedPreferences().registerOnSharedPreferenceChangeListener(this);

	    service_Addr=(EditTextPreference)preferences.findPreference(KEY_SERVICE_ADDR);
	 }
	
	 
	  public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
	    disableLastCheckedPref();
	  }

	  private void disableLastCheckedPref() {
	   
	  }
	
}
